<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 获取随机数
        console.log(Math.random());
        // 获取2的平方
        console.log(Math.pow(2,2));
        // 计算2的平方根
        console.log(Math.sqrt(2));
        // π的值
        console.log(Math.PI);
    </script>
</body>
</html>